﻿<ResourceDictionary  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:f="clr-namespace:Microsoft.WVB.Framework;assembly=Microsoft.WVB.Framework"
    xmlns:inf="clr-namespace:Microsoft.WVB.Silverlight.Infrastructure;assembly=Microsoft.WVB.Silverlight.Infrastructure"
    xmlns:src="clr-namespace:Microsoft.WVB.UI;assembly=Microsoft.WVB.UI"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">

	<Style x:Key="Test" TargetType="ListBox" />

    <LinearGradientBrush x:Key="greyGrad" EndPoint="0.5,0.310000002384186" StartPoint="0.5,1.19000005722046">
        <GradientStop Color="#FFDADADA" Offset="0.487"/>
        <GradientStop Color="#FFFFFFFF" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="LightBrush" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#FFF" Offset="0.0"/>
        <GradientStop Color="#EEE" Offset="1.0"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#EEE" Offset="0.0"/>
        <GradientStop Color="#CCC" Offset="1.0"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="NormalBorderBrush" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#CCC" Offset="0.0"/>
        <GradientStop Color="#444" Offset="1.0"/>
    </LinearGradientBrush>

    <!-- Resources -->
    <SolidColorBrush x:Key="BaseColorBrush" Color="#FF9FD752"/>
    <SolidColorBrush x:Key="BorderBrush" Color="#FF333333"/>
    <SolidColorBrush x:Key="ForegroundBrush" Color="#FF333333"/>
    <SolidColorBrush x:Key="HoverBrush" Color="#7FFBF445"/>
    <SolidColorBrush x:Key="HyperlinkBrush" Color="#FF74AF22"/>

    <LinearGradientBrush x:Key="playerControlsChromeBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFE5E7EC" Offset="0.43"/>
        <GradientStop Color="#FFFFFFFF" Offset="0.54"/>
    </LinearGradientBrush>

    <Style x:Key="ThumbStyle" TargetType="Thumb">
        <Setter Property="Background" Value="{StaticResource BaseColorBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal"/>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation To="Gray" Storyboard.TargetName="mainRectangle" Storyboard.TargetProperty="(Rectangle.Stroke).(SolidColorBrush.Color)" Duration="00:00:00.5"/>
                                   </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation To="White" Storyboard.TargetName="mainRectangle" Storyboard.TargetProperty="(Rectangle.Stroke).(SolidColorBrush.Color)" Duration="00:00:00.5"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <!--Start UI-->
                        <Rectangle x:Name="mainRectangle" Fill="{TemplateBinding Background}" Height="12.5" Width="12.5" Stroke="Black" StrokeThickness="1.0" />
                        <!--End UI-->
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Buttons Color Scheme -->
    <SolidColorBrush x:Key="GrayButtonFgBrush" Color="#FFBDC6CD"/>
    <SolidColorBrush x:Key="GrayButtonBorderBrush" Color="#FF99A1A4"/>
    <SolidColorBrush x:Key="WhiteBrush" Color="#FFEFEFEF"/>
    <SolidColorBrush x:Key="BlueBrush" Color="#FF8FC7EE"/>
    <SolidColorBrush x:Key="Gray2Brush" Color="#FF4C4944"/>
    <SolidColorBrush x:Key="DarkBlackBrush" Color="#FF18191B"/>
    <SolidColorBrush x:Key="ShadowStep1Brush" Color="#0D000000"/>
    <SolidColorBrush x:Key="ShadowStep2Brush" Color="#29000000"/>
    <SolidColorBrush x:Key="ShadowStep3Brush" Color="#46000000"/>
    <SolidColorBrush x:Key="MiddleGrayBrush" Color="#FF666666"/>

    <LinearGradientBrush x:Key="PlaybackEnabledBgBrush" EndPoint="0.5,0" StartPoint="0.5,1">
        <GradientStop Color="#FFA6ABB1"/>
        <GradientStop Color="#FFAEB3B9" Offset="0.45"/>
        <GradientStop Color="#FFBDC2C6" Offset="0.5"/>
        <GradientStop Color="#FFC7CACF" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="PlaybackDisabledBgBrush" EndPoint="0.5,0" StartPoint="0.5,1">
        <GradientStop Color="#FFC1C6CC"/>
        <GradientStop Color="#FFCACFD5" Offset="0.45"/>
        <GradientStop Color="#FFD2D7DD" Offset="0.5"/>
        <GradientStop Color="#FFE8EBF2" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="BlackButtonBgBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF282D30"/>
        <GradientStop Color="#FF191A1C" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="BlueButtonBgBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF003FB3"/>
        <GradientStop Color="#FF002C8D" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="LightGrayButtonBgBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEBECEE"/>
        <GradientStop Color="#FFCBCDCC" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="LightGrayButtonFgBrush" Color="#FF707A83"/>

    <LinearGradientBrush x:Key="GrayButtonBgBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF7C878D"/>
        <GradientStop Color="#FF5D666B" Offset="1"/>
    </LinearGradientBrush>

    <!-- MuteButtonTemplate -->
    <Style x:Key="MuteButtonTemplate" TargetType="ToggleButton">
        <Setter Property="Width" Value="15"/>
        <Setter Property="Height" Value="13"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ToggleButton">
                    <Grid x:Name="RootElement" Background="Transparent">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation
                        Storyboard.TargetName="UncheckedOver"
                        Storyboard.TargetProperty="Opacity"
                        To="1.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                        Storyboard.TargetName="CheckedOver"
                        Storyboard.TargetProperty="Opacity"
                        To="1.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard />
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard />
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CheckStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard >
                                        <DoubleAnimation
                        Storyboard.TargetName="PathChecked"
                        Storyboard.TargetProperty="Opacity"
                        To="1.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                        Storyboard.TargetName="PathUnchecked"
                        Storyboard.TargetProperty="Opacity"
                        To="0.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid
                            x:Name="UncheckedOver" Opacity="0.0">
                            <Path
                              Height="15"
                              Margin="0,0,-1,-1"
                              Stretch="Uniform"
                              Fill="#FF74797D"
                              Opacity="1.0"
                              IsHitTestVisible="False"
                              Data="M20318,7454L20476,7454L20615,7292L20641,7292L20641,7810L20615,7811L20478,7642L20315,7642L20318,7454 M20738,7358C20719,7357,20706,7341,20707,7323C20709,7305,20724,7291,20742,7293L20747,7293C20748,7293,20750,7293,20751,7293C20766,7295,20780,7298,20794,7303C20809,7308,20824,7315,20837,7323L20839,7325C20905,7366,20950,7445,20952,7543L20952,7543L20952,7543L20952,7549L20952,7549L20952,7549C20951,7569,20950,7587,20946,7605C20943,7622,20938,7639,20932,7656C20899,7741,20830,7801,20753,7809C20735,7810,20719,7797,20717,7779C20715,7761,20729,7745,20747,7743C20799,7738,20847,7694,20870,7632C20875,7620,20879,7607,20882,7592C20884,7578,20886,7564,20886,7549L20886,7544L20886,7543C20885,7470,20852,7411,20804,7380L20802,7379C20793,7374,20783,7369,20773,7365C20764,7362,20754,7360,20744,7359L20742,7359L20738,7358 M20701,7486C20686,7484,20674,7470,20676,7455C20678,7439,20692,7428,20707,7429L20713,7430L20715,7430L20715,7430L20715,7430C20723,7431,20730,7433,20737,7435L20739,7435C20747,7438,20754,7440,20760,7443C20799,7462,20828,7496,20828,7546C20829,7552,20828,7557,20827,7563C20824,7592,20809,7616,20790,7635C20771,7652,20747,7664,20723,7668C20718,7668,20713,7669,20708,7669C20692,7669,20679,7656,20679,7640C20679,7624,20692,7612,20708,7612C20710,7612,20712,7612,20715,7611C20727,7609,20740,7603,20751,7593C20761,7583,20769,7570,20771,7555C20771,7553,20772,7550,20772,7547C20771,7522,20757,7505,20736,7495C20732,7493,20727,7491,20723,7490L20723,7490L20722,7490L20722,7490C20717,7488,20712,7487,20707,7487L20706,7487L20701,7486z"/>
                        </Grid>

                        <Path
                            x:Name="PathUnchecked"
                                IsHitTestVisible="False"
                                Stretch="Uniform"
                                Opacity="1.0"
                                Fill="{StaticResource playerControlsChromeBrush}"
                                Data="M20318,7454L20476,7454L20615,7292L20641,7292L20641,7810L20615,7811L20478,7642L20315,7642L20318,7454 M20738,7358C20719,7357,20706,7341,20707,7323C20709,7305,20724,7291,20742,7293L20747,7293C20748,7293,20750,7293,20751,7293C20766,7295,20780,7298,20794,7303C20809,7308,20824,7315,20837,7323L20839,7325C20905,7366,20950,7445,20952,7543L20952,7543L20952,7543L20952,7549L20952,7549L20952,7549C20951,7569,20950,7587,20946,7605C20943,7622,20938,7639,20932,7656C20899,7741,20830,7801,20753,7809C20735,7810,20719,7797,20717,7779C20715,7761,20729,7745,20747,7743C20799,7738,20847,7694,20870,7632C20875,7620,20879,7607,20882,7592C20884,7578,20886,7564,20886,7549L20886,7544L20886,7543C20885,7470,20852,7411,20804,7380L20802,7379C20793,7374,20783,7369,20773,7365C20764,7362,20754,7360,20744,7359L20742,7359L20738,7358 M20701,7486C20686,7484,20674,7470,20676,7455C20678,7439,20692,7428,20707,7429L20713,7430L20715,7430L20715,7430L20715,7430C20723,7431,20730,7433,20737,7435L20739,7435C20747,7438,20754,7440,20760,7443C20799,7462,20828,7496,20828,7546C20829,7552,20828,7557,20827,7563C20824,7592,20809,7616,20790,7635C20771,7652,20747,7664,20723,7668C20718,7668,20713,7669,20708,7669C20692,7669,20679,7656,20679,7640C20679,7624,20692,7612,20708,7612C20710,7612,20712,7612,20715,7611C20727,7609,20740,7603,20751,7593C20761,7583,20769,7570,20771,7555C20771,7553,20772,7550,20772,7547C20771,7522,20757,7505,20736,7495C20732,7493,20727,7491,20723,7490L20723,7490L20722,7490L20722,7490C20717,7488,20712,7487,20707,7487L20706,7487L20701,7486z"/>

                        <Grid x:Name="CheckedOver" Opacity="0.0">
                            <Path
                                  Height="15"
                                  Margin="0,0,-1,-1"
                                  Stretch="Uniform"
                                  Fill="#FF74797D"
                                  Opacity="1.0"
                                  IsHitTestVisible="False"
                                  Data="M20318,7454L20476,7454L20615,7292L20641,7292L20641,7810L20615,7811L20478,7642L20315,7642L20318,7454 M20738,7358C20719,7357,20706,7341,20707,7323C20709,7305,20724,7291,20742,7293L20747,7293C20748,7293,20750,7293,20751,7293C20766,7295,20780,7298,20794,7303C20809,7308,20824,7315,20837,7323L20839,7325C20905,7366,20950,7445,20952,7543L20952,7543L20952,7543L20952,7549L20952,7549L20952,7549C20951,7569,20950,7587,20946,7605C20943,7622,20938,7639,20932,7656C20899,7741,20830,7801,20753,7809C20735,7810,20719,7797,20717,7779C20715,7761,20729,7745,20747,7743C20799,7738,20847,7694,20870,7632C20875,7620,20879,7607,20882,7592C20884,7578,20886,7564,20886,7549L20886,7544L20886,7543C20885,7470,20852,7411,20804,7380L20802,7379C20793,7374,20783,7369,20773,7365C20764,7362,20754,7360,20744,7359L20742,7359L20738,7358 M20701,7486C20686,7484,20674,7470,20676,7455C20678,7439,20692,7428,20707,7429L20713,7430L20715,7430L20715,7430L20715,7430C20723,7431,20730,7433,20737,7435L20739,7435C20747,7438,20754,7440,20760,7443C20799,7462,20828,7496,20828,7546C20829,7552,20828,7557,20827,7563C20824,7592,20809,7616,20790,7635C20771,7652,20747,7664,20723,7668C20718,7668,20713,7669,20708,7669C20692,7669,20679,7656,20679,7640C20679,7624,20692,7612,20708,7612C20710,7612,20712,7612,20715,7611C20727,7609,20740,7603,20751,7593C20761,7583,20769,7570,20771,7555C20771,7553,20772,7550,20772,7547C20771,7522,20757,7505,20736,7495C20732,7493,20727,7491,20723,7490L20723,7490L20722,7490L20722,7490C20717,7488,20712,7487,20707,7487L20706,7487L20701,7486z"/>
                        </Grid>

                        <Path
                                x:Name="PathChecked"
                                IsHitTestVisible="False"
                                Stretch="Uniform"
                                Opacity="0.0"
                                Data="M20318,7454L20476,7454L20615,7292L20641,7292L20641,7810L20615,7811L20478,7642L20315,7642L20318,7454 M20738,7358C20719,7357,20706,7341,20707,7323C20709,7305,20724,7291,20742,7293L20747,7293C20748,7293,20750,7293,20751,7293C20766,7295,20780,7298,20794,7303C20809,7308,20824,7315,20837,7323L20839,7325C20905,7366,20950,7445,20952,7543L20952,7543L20952,7543L20952,7549L20952,7549L20952,7549C20951,7569,20950,7587,20946,7605C20943,7622,20938,7639,20932,7656C20899,7741,20830,7801,20753,7809C20735,7810,20719,7797,20717,7779C20715,7761,20729,7745,20747,7743C20799,7738,20847,7694,20870,7632C20875,7620,20879,7607,20882,7592C20884,7578,20886,7564,20886,7549L20886,7544L20886,7543C20885,7470,20852,7411,20804,7380L20802,7379C20793,7374,20783,7369,20773,7365C20764,7362,20754,7360,20744,7359L20742,7359L20738,7358 M20701,7486C20686,7484,20674,7470,20676,7455C20678,7439,20692,7428,20707,7429L20713,7430L20715,7430L20715,7430L20715,7430C20723,7431,20730,7433,20737,7435L20739,7435C20747,7438,20754,7440,20760,7443C20799,7462,20828,7496,20828,7546C20829,7552,20828,7557,20827,7563C20824,7592,20809,7616,20790,7635C20771,7652,20747,7664,20723,7668C20718,7668,20713,7669,20708,7669C20692,7669,20679,7656,20679,7640C20679,7624,20692,7612,20708,7612C20710,7612,20712,7612,20715,7611C20727,7609,20740,7603,20751,7593C20761,7583,20769,7570,20771,7555C20771,7553,20772,7550,20772,7547C20771,7522,20757,7505,20736,7495C20732,7493,20727,7491,20723,7490L20723,7490L20722,7490L20722,7490C20717,7488,20712,7487,20707,7487L20706,7487L20701,7486z" Fill="#FFB1B8C0"/>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- FullModeButtonTemplate -->
    <Style x:Key="ButtonModeFullScreen" TargetType="ToggleButton">
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ToggleButton">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal"/>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Storyboard.TargetName="Over"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Storyboard.TargetName="Pressed1"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1.0" Duration="0:0:0"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Storyboard.TargetName="RootElement"
                                            Storyboard.TargetProperty="Opacity"
                                            To="0.4" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CheckStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimation
                                                Storyboard.TargetName="ContentBrush"
                                                Storyboard.TargetProperty="Color"
                                                To="Black" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked" >
                                    <Storyboard>
                                        <ColorAnimation
                                                Storyboard.TargetName="ContentBrush"
                                                Storyboard.TargetProperty="Color"
                                                To="White" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Over" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.0" Fill="{StaticResource BlueBrush}" />
                        <Path x:Name="Pressed1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="-1,-1,0,0" Stretch="Uniform" Data="M1769 8348l0 -238 236 0 0 -13 -249 0 0 251 13 0zm28 -29l0 -181 180 0 0 -14c-64,0 -129,0 -193,0l0 195 13 0z" Fill="{StaticResource DarkBlackBrush}" Opacity="0.0" />
                        <Path Stretch="Uniform" Data="M1769 8110l237 0 0 238 -237 0 0 -238zm14 14l209 0 0 210 -209 0 0 -210zm15 14l179 0 0 181 -179 0 0 -181z">
                            <Path.Fill>
                                <SolidColorBrush x:Name="ContentBrush" Color="White" />
                            </Path.Fill>
                        </Path>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <!--Begin Of Design Resources -->
    <src:Strings x:Key="Strings" />

    <!-- Playback Buttons Templates -->

    <!-- RewindButtonTemplate -->
    <Style x:Key="ScanButtonTemplate" TargetType="Button">
        <Setter Property="Width" Value="45"/>
        <Setter Property="Height" Value="45"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <!--<Storyboard>
                                        <ColorAnimation
                                          Storyboard.TargetName="ContentBrush"
                                          Storyboard.TargetProperty="Color"
                                          To="#FF8FC7EE" Duration="0:0:0.05"/>
                                    </Storyboard>-->
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <!--<Storyboard>
                                        <DoubleAnimation
                                                  Storyboard.TargetName="MoveY"
                                                  Storyboard.TargetProperty="Y"
                                                    To="1.3" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                                                  Storyboard.TargetName="ShadowStep1"
                                                  Storyboard.TargetProperty="Opacity"
                                                  To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                                                  Storyboard.TargetName="ShadowStep2"
                                                  Storyboard.TargetProperty="Opacity"
                                                  To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                                                  Storyboard.TargetName="ShadowStep3"
                                                  Storyboard.TargetProperty="Opacity"
                                                  To="0.0" Duration="0:0:0.05"/>
                                    </Storyboard>-->
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled"/>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="GridEnabled" Opacity="1.0">
                            <Border Width="34" Height="34" x:Name="border" Cursor="Hand" BorderBrush="#00AAC2CF" BorderThickness="1,1,1,1" Padding="0,0,2,0" >
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#00000000" Offset="0"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <StackPanel Orientation="Horizontal">
                                    <Rectangle Margin="2" Width="4"  Fill="{StaticResource playerControlsChromeBrush}" Stroke="{x:Null}" x:Name="rectangle1" Height="18"/>
                                    <Path Fill="{StaticResource playerControlsChromeBrush}" Data="F1 M 30.709961,40.990234 L 45.518555,34.597656 L 45.518555,40.564453 L 59.343262,34.597656 L 59.343262,47.382813 L 45.518555,41.415039 L 45.518555,47.382813 L 30.709961,40.990234 Z" x:Name="rwdArrows" RenderTransformOrigin="0.5,0.5" Height="21" Stretch="Fill" Width="21"/>
                                </StackPanel>
                            </Border>
                        </Grid>   
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- PlayPauseButtonTemplate -->
    <Style x:Key="PlayPauseButtonTemplate" TargetType="CheckBox">
        <Setter Property="Width" Value="45"/>
        <Setter Property="Height" Value="45"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver"/>
                                <vsm:VisualState x:Name="Pressed"/>
                                <vsm:VisualState x:Name="Disabled"/>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CheckStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimation
                                                Storyboard.TargetName="PlayIcon"
                                                Storyboard.TargetProperty="Opacity"
                                                To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                                            Storyboard.TargetName="PauseIcon"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="GridEnabled" Opacity="1.0">
                            <Grid Background="Transparent" x:Name="PlayIcon"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center">
                                <Path Data="F1 M 0.000000,30.850586 L 0.000000,0.000000 L 22.986816,15.424805 L 0.000000,30.850586 Z" x:Name="playArrow" Fill="{StaticResource playerControlsChromeBrush}" RenderTransformOrigin="0.5,0.5" Height="Auto">
                                    <Path.RenderTransform>
                                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                  
                            <Grid
                              x:Name="PauseIcon"
                              HorizontalAlignment="Center"
                              VerticalAlignment="Center"
                              IsHitTestVisible="False"
                              Opacity="0.0">
                                <StackPanel Width="34" Height="34" Orientation="Horizontal">
                                    <Rectangle HorizontalAlignment="Left" Margin="4,2,2,2" x:Name="rectangle" Width="8"  Fill="{StaticResource playerControlsChromeBrush}" Stroke="{x:Null}" Height="18"/>
                                    <Rectangle HorizontalAlignment="Right" Margin="2,2,4,2" Width="8"  Fill="{StaticResource playerControlsChromeBrush}" Stroke="{x:Null}" x:Name="rectangle1" Height="18"/>
                                </StackPanel>
                            </Grid>
                        </Grid>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ForwardButtonTemplate -->
    <Style x:Key="ForwardButtonTemplate" TargetType="Button">
        <Setter Property="Width" Value="44"/>
        <Setter Property="Height" Value="15"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard >
                                        <ColorAnimation
                          Storyboard.TargetName="ContentBrush"
                          Storyboard.TargetProperty="Color"
                          To="#FF8FC7EE" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation
                          Storyboard.TargetName="MoveY"
                          Storyboard.TargetProperty="Y"
                          To="1.3" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep1"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep2"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep3"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                            Storyboard.TargetName="GridEnabled"
                            Storyboard.TargetProperty="Opacity"
                            To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                            Storyboard.TargetName="GridDisabled"
                            Storyboard.TargetProperty="Opacity"
                            To="1.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Path
                x:Name="ShadowStep1"
                Height="15"
                Margin="0,0,0,-3"
                Stretch="Uniform"
                Fill="{StaticResource ShadowStep1Brush}"
                Opacity="1.0"
                IsHitTestVisible="False"
                Data="M12828,2318L12826,1779L14153,1779C14256,1779,14340,1864,14340,1967L14340,2129C14340,2233,14256,2318,14153,2318L12828,2318z"/>
                        <Path
                x:Name="ShadowStep2"
                Height="15"
                Margin="0,0,0,-2"
                Stretch="Uniform"
                Fill="{StaticResource ShadowStep2Brush}"
                Opacity="1.0"
                IsHitTestVisible="False"
                Data="M12828,2318L12826,1779L14153,1779C14256,1779,14340,1864,14340,1967L14340,2129C14340,2233,14256,2318,14153,2318L12828,2318z"/>
                        <Path
                x:Name="ShadowStep3"
                Height="15"
                Margin="0,0,0,-1"
                Stretch="Uniform"
                Fill="{StaticResource ShadowStep3Brush}"
                Opacity="1.0"
                Data="M12828,2318L12826,1779L14153,1779C14256,1779,14340,1864,14340,1967L14340,2129C14340,2233,14256,2318,14153,2318L12828,2318z"/>

                        <Grid
                x:Name="GridEnabled"
                Opacity="1.0">
                            <Grid.RenderTransform>
                                <TranslateTransform x:Name="MoveY" Y="0.0"/>
                            </Grid.RenderTransform>
                            <Path
                  Stretch="Uniform"
                  Fill="{StaticResource PlaybackEnabledBgBrush}"
                  Data="M12828,2318L12826,1779L14153,1779C14256,1779,14340,1864,14340,1967L14340,2129C14340,2233,14256,2318,14153,2318L12828,2318z"/>

                            <Grid
                  Width="14"
                  Height="10"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  IsHitTestVisible="False">
                                <Path
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Margin="0,0,0,-0.7"
                    Fill="{StaticResource WhiteBrush}"
                    Stretch="Uniform"
                    Data="M13567,2052L13545,2030L13365,2205L13387,2227L13567,2052 M13854,2056L13832,2033L13652,2208L13674,2231L13854,2056z"/>
                                <Path
                    HorizontalAlignment="Left"
                    Margin="-0.6,0,0,0"
                    Fill="#FF74797D"
                    Stretch="Uniform"
                    Data="M13367,1859L13335,1859L13335,2203L13367,2203L13367,1859 M13654,1863L13622,1863L13622,2206L13654,2206L13654,1863z"/>
                                <Path
                    Stretch="Uniform"
                    Data="M13545,2029L13368,1861L13367,2204L13545,2029 M13832,2033L13655,1864L13654,2208L13832,2033z">
                                    <Path.Fill>
                                        <SolidColorBrush x:Name="ContentBrush" Color="#FF84898A"/>
                                    </Path.Fill>
                                </Path>
                            </Grid>
                            <Rectangle
                  Width="1"
                  Height="15"
                  HorizontalAlignment="Left"
                  Margin="1,0,0,0"
                  IsHitTestVisible="False">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
                                        <GradientStop Color="#FFA6ABB1"/>
                                        <GradientStop Color="#FFBEC1C6" Offset="0.45"/>
                                        <GradientStop Color="#FFC3C6CB" Offset="0.451"/>
                                        <GradientStop Color="#FFD0D3D8" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </Grid>

                        <Grid
                x:Name="GridDisabled"
                Opacity="0.0"
                IsHitTestVisible="False">
                            <Path
                  Stretch="Uniform"
                  Fill="{StaticResource PlaybackDisabledBgBrush}"
                  Data="M12828,2318L12826,1779L14153,1779C14256,1779,14340,1864,14340,1967L14340,2129C14340,2233,14256,2318,14153,2318L12828,2318z"/>

                            <Grid
                  Width="14"
                  Height="10"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center">
                                <Path
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Margin="0,0,0,-0.7"
                    Fill="{StaticResource WhiteBrush}"
                    Stretch="Uniform"
                    Data="M13567,2052L13545,2030L13365,2205L13387,2227L13567,2052 M13854,2056L13832,2033L13652,2208L13674,2231L13854,2056z"/>
                                <Path
                    HorizontalAlignment="Left"
                    Margin="-0.6,0,0,0"
                    Fill="#FFA3A7B0"
                    Stretch="Uniform"
                    Data="M13367,1859L13335,1859L13335,2203L13367,2203L13367,1859 M13654,1863L13622,1863L13622,2206L13654,2206L13654,1863z"/>
                                <Path
                    Stretch="Uniform"
                    Fill="#FFBCC5CC"
                    Data="M13545,2029L13368,1861L13367,2204L13545,2029 M13832,2033L13655,1864L13654,2208L13832,2033z"/>
                            </Grid>
                            <Rectangle
                  Width="1"
                  Height="15"
                  HorizontalAlignment="Left"
                  Margin="1,0,0,0">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
                                        <GradientStop Color="#FFD5DAE0"/>
                                        <GradientStop Color="#FFDDE2E6" Offset="0.45"/>
                                        <GradientStop Color="#FFE3E6EB" Offset="0.451"/>
                                        <GradientStop Color="#FFF3F6FD" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </Grid>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Replay Button -->
    <Style x:Key="ReplayButtonTemplate" TargetType="Button">
        <Setter Property="Width" Value="55"/>
        <Setter Property="Height" Value="55"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.01" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard >
                                        <ColorAnimation
                          Storyboard.TargetName="ContentBrush"
                          Storyboard.TargetProperty="Color"
                          To="#FF8FC7EE" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep1"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep2"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                        <DoubleAnimation
                          Storyboard.TargetName="ShadowStep3"
                          Storyboard.TargetProperty="Opacity"
                          To="0.0" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                            Storyboard.TargetName='RectDisabled'
                            Storyboard.TargetProperty="Opacity"
                            To="0.75" Duration="0:0:0.05"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="ShadowStep1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-3,1.5,-3,-3" RadiusX="7" RadiusY="7" Fill="{StaticResource ShadowStep1Brush}"/>
                        <Rectangle x:Name="ShadowStep2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-2,1.5,-2,-2" RadiusX="5" RadiusY="5" Fill="{StaticResource ShadowStep2Brush}"/>
                        <Rectangle x:Name="ShadowStep3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-0.5,1.5,-0.5,-0.5" RadiusX="4.5" RadiusY="4.5" Fill="{StaticResource ShadowStep3Brush}"/>
                        <Rectangle                
            		x:Name="Background"
            		Width="55"
            		Height="55"
            		HorizontalAlignment="Left"
            		VerticalAlignment="Bottom"
            		Margin="0,0,0,0"                
            		RadiusX="3"
            		RadiusY="3"
            		Stroke="{StaticResource MiddleGrayBrush}"
            		StrokeThickness="2">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF282D30"/>
                                    <GradientStop Color="#FF18191B" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>

                        <Grid
            		Width="35"
            		Height="35"
            		HorizontalAlignment="Center"
            		VerticalAlignment="Center"
            		Margin="0,0,0,0">
                            <Path
            			x:Name="Content"
            			RenderTransformOrigin="0,0"
            			Stretch="Uniform"
            			StrokeThickness="0"
            			Data="M559,610C564,615,572,617,579,617C597,617,612,603,612,585C612,567,597,553,579,553C561,553,547,567,547,585L518,585C518,551,545,524,579,524C613,524,641,551,641,585C641,619,613,647,579,647C563,647,549,641,538,631L529,640L529,600L568,600L559,610z">
                                <Path.Fill>
                                    <SolidColorBrush x:Name="ContentBrush" Color="#FFEFEFEF"/>
                                </Path.Fill>
                            </Path>
                        </Grid>

                        <Rectangle
                x:Name="RectDisabled"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Opacity="0.0"
                RadiusX="3"
                RadiusY="3"
                Fill="{StaticResource MiddleGrayBrush}"/>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="FormTextBoxStyle1" TargetType="TextBox">
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <!--<Setter Property="Height" Value="20"/>-->
        <Setter Property="Width" Value="100"/>
        <Setter Property="Margin" Value="5"/>
    </Style>

    <!-- Begin of Rating 5 Stars Style template -->
    <Style x:Key="FiveStarRatingTemplate" TargetType="Slider">
        <Setter Property="SmallChange" Value="1"/>
        <Setter Property="LargeChange" Value="1" />
        <Setter Property="Minimum" Value="0"/>
        <Setter Property="Maximum" Value="5" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Slider">
                    <Grid x:Name="Root" Background="Transparent" Width="120">
                        <Grid.Resources>
                            <ControlTemplate x:Key="LeftRepeatButton" TargetType="RepeatButton">
                                <Grid Opacity="1" Background="Transparent">
                                    <Rectangle Height="30" IsHitTestVisible="True" HorizontalAlignment="Stretch" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="0.32">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush EndPoint="0.493999987840652,0.349999994039536" StartPoint="0.493999987840652,0.717000007629395">
                                                <GradientStop Color="#FFFFD200"/>
                                                <GradientStop Color="#FFFFFEF6" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RightRepeatButton" TargetType="RepeatButton">
                                <Grid Opacity="0" Background="Transparent">
                                    <Rectangle Fill="Transparent" Height="30" IsHitTestVisible="True" VerticalAlignment="Center" RadiusX="2" RadiusY="2" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid Opacity="1" Background="Transparent">
                                    <Rectangle Fill="#3399FE" Margin="0" Height="{TemplateBinding Height}" VerticalAlignment="Center" IsHitTestVisible="True" />
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalTemplate" Background="Transparent" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource LeftRepeatButton}" Grid.Column="0"/>
                            <Thumb VerticalAlignment="Center" x:Name="HorizontalThumb" Grid.Column="1" />
                            <!--Style="{StaticResource NonAjustableThumb}"-->
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RightRepeatButton}" Grid.Column="2"/>
                            <Path Height="35" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Center" Fill="#FFE3E3E3" Stretch="Fill" StrokeThickness="1" Data="M184.12413,10.500003 L179.87224,22.967936 L166.61552,22.992762 L177.2433,30.86101 L173.17058,43.387783 L183.99077,35.782745 L194.73048,43.5 L190.79004,30.93145 L201.5,23.174126 L188.24435,23.011463 L184.12413,10.500003 z M145.59523,10.500003 L141.34335,22.967936 L128.08664,22.992739 L138.71442,30.86101 L134.64169,43.387783 L145.46188,35.782745 L156.2016,43.5 L152.26115,30.93145 L162.97113,23.174126 L149.71547,23.011463 L145.59523,10.500003 z M107.06635,10.500003 L102.81448,22.967936 L89.557762,22.992739 L100.18552,30.86101 L96.112808,43.387783 L106.93301,35.782745 L117.6725,43.5 L113.73206,30.93145 L124.44225,23.174126 L111.18659,23.011463 L107.06635,10.500003 z M68.537476,10.500003 L64.285599,22.967936 L51.028881,22.992739 L61.656643,30.86101 L57.583931,43.387783 L68.404121,35.782745 L79.143623,43.5 L75.203186,30.93145 L85.913361,23.174126 L72.657707,23.011463 L68.537476,10.500003 z M30.008635,10.500003 L25.756634,22.967936 L12.499999,22.992739 L23.127762,30.86101 L19.055004,43.387783 L29.875326,35.782745 L40.614738,43.5 L36.674515,30.93145 L47.384476,23.174126 L34.12883,23.011463 L30.008635,10.500003 z M0.5,0.5 L210.5,0.5 L210.5,53.5 L0.5,53.5 L0.5,0.5 z"/>
                        </Grid>
                        <Grid x:Name="VerticalTemplate" Visibility="Collapsed" Background="Transparent">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="2"/>
                            <Thumb Height="20" x:Name="VerticalThumb" Width="15" Grid.Row="1"/>
                            <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="0"/>
                            <Path Height="35" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF7A7A7A" StrokeThickness="1" Data="M99.889587,6.6600018 L97.901825,12.40581 L92.160004,13.363486 L96.57682,17.433628 L95.030991,23.777821 L99.889587,19.947329 L104.96892,23.778 L103.09166,17.194157 L107.84,13.483132 L102.3189,12.40581 L99.889587,6.6600018 z M79.889587,6.6600018 L77.901825,12.40581 L72.160004,13.363486 L76.57682,17.433628 L75.030991,23.777821 L79.889587,19.947329 L84.968918,23.778 L83.09166,17.194157 L87.840004,13.483132 L82.318901,12.40581 L79.889587,6.6600018 z M59.889587,6.6599998 L57.901825,12.40581 L52.16,13.363486 L56.576817,17.433628 L55.030991,23.777821 L59.889587,19.947329 L64.968918,23.778 L63.09166,17.194157 L67.840004,13.483132 L62.318901,12.40581 L59.889587,6.6599998 z M39.889587,6.6599998 L37.901825,12.40581 L32.16,13.363486 L36.576817,17.433628 L35.030991,23.777821 L39.889587,19.947329 L44.968918,23.778 L43.09166,17.194157 L47.84,13.483132 L42.318901,12.40581 L39.889587,6.6599998 z M19.889587,6.6599998 L17.901825,12.40581 L12.16,13.363486 L16.576817,17.433628 L15.030993,23.777821 L19.889587,19.947329 L24.968918,23.778 L23.09166,17.194157 L27.84,13.48313 L22.318899,12.40581 L19.889587,6.6599998 z M0.16,0.16 L119.34,0.16 L119.34,29.84 L0.16,29.84 L0.16,0.16 z"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!-- End of Rating 5 Stars Style template -->

    <!-- Begin of MediaControl Slider Style -->
    <Style x:Key="AdjustableThumb" TargetType="Thumb">
        <Setter Property="Height" Value="14"/>
        <!--<Setter Property="Width" Value=""></Setter>-->
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid Background="Transparent">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <!--<Polygon Points="2,5 -3,0 6,0 1,5" Fill="Black" />-->
                        <Rectangle Width="8" Fill="#FFFFFFFF" Height="12"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NonAjustableThumb" TargetType="Thumb">
        <Setter Property="IsHitTestVisible" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle Height="5" Width="5" Fill="Transparent" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SliderTemplate" TargetType="Slider">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Slider">
                    <Grid x:Name="Root" Background="Transparent">
                        <Grid.Resources>
                            <ControlTemplate x:Key="LeftRepeatButton" TargetType="RepeatButton">
                                <!--Fill="#3399FE"-->
                                <Grid Opacity="1" Background="Transparent">
                                    <Rectangle Fill="Black" Height="3" IsHitTestVisible="True" VerticalAlignment="Center" RadiusX="2" RadiusY="2" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RightRepeatButton" TargetType="RepeatButton">
                                <Grid Opacity="0" Background="Transparent">
                                    <Rectangle Fill="Transparent" Height="3" IsHitTestVisible="True" VerticalAlignment="Center" RadiusX="2" RadiusY="2" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <!--Fill=""-->
                                <Grid Opacity="1" Background="Transparent">
                                    <Rectangle Fill="{StaticResource playerControlsChromeBrush}" Margin="0" Height="3" VerticalAlignment="Center" IsHitTestVisible="True" />
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalTemplate" Background="Transparent">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource LeftRepeatButton}" Grid.Column="0"/>
                            <Thumb VerticalAlignment="Center" x:Name="HorizontalThumb" Grid.Column="1" Style="{StaticResource AdjustableThumb}"/>
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RightRepeatButton}" Grid.Column="2"/>
                        </Grid>
                        <Grid x:Name="VerticalTemplate" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Rectangle Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3" Fill="#FFE6EFF7" Stroke="Black" StrokeThickness="0.5"/>
                            <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="2"/>
                            <Thumb Height="11" x:Name="VerticalThumb" Width="18" Grid.Row="1"/>
                            <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="0"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
   
    <Style x:Key="DownloadTemplate" TargetType="Slider">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Slider">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <ControlTemplate x:Key="LeftRepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid Opacity="1" Background="Transparent">
                                    <Rectangle Fill="{StaticResource playerControlsChromeBrush}" Height="3" VerticalAlignment="Center" RadiusX="2" RadiusY="2" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RightRepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid Opacity="0" Background="Transparent">
                                    <Rectangle Fill="Red" Height="3" VerticalAlignment="Center" RadiusX="2" RadiusY="2" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid Opacity="1" Background="Transparent">
                                    <!--#3399FE-->
                                    <Rectangle Fill="Black" Margin="0" Height="3" VerticalAlignment="Center" IsHitTestVisible="True" />
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalTemplate">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource LeftRepeatButtonTemplate}" Grid.Column="0"/>
                            <Thumb VerticalAlignment="Center" x:Name="HorizontalThumb" Grid.Column="1" Style="{StaticResource NonAjustableThumb}"/>
                            <RepeatButton VerticalAlignment="Center" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RightRepeatButtonTemplate}" Grid.Column="2"/>
                        </Grid>
                        <Grid x:Name="VerticalTemplate" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Rectangle Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3" Fill="#FFE6EFF7" Stroke="Black" StrokeThickness="0.5"/>
                            <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="2"/>
                            <Thumb Height="11" x:Name="VerticalThumb" Width="18" Grid.Row="1" />
                            <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="0"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="VolumeTemplate" TargetType="Slider">
        <Setter Property="Background" Value="{StaticResource LightBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Slider">
                    <Grid x:Name="Root" Opacity="1">
                        <Grid.Resources>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid Opacity="0" Background="Transparent"/>
                            </ControlTemplate>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal"/>
                                <vsm:VisualState x:Name="MouseOver"/>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard/>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                    <!--<Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <vsm:Visibility>Visible</vsm:Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>-->
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalTemplate">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Rectangle Fill="{StaticResource playerControlsChromeBrush}" Grid.Column="0" Grid.ColumnSpan="3" Height="5" VerticalAlignment="Center" Stretch="Fill" Stroke="{StaticResource BorderBrush}" Width="80"/>
                            <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="0"/>
                            <Thumb Background="{TemplateBinding Background}" Height="20" Width="16" x:Name="HorizontalThumb" Grid.Column="1" Style="{StaticResource ThumbStyle}"/>
                            <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="2"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="src:LargeSpinner">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:LargeSpinner">
                    <Grid x:Name="RootElement" Width="100" Height="100" Opacity="0.0" Background="Transparent">
                        <Grid.Resources>
                            <LinearGradientBrush x:Key="WhiteGradientBrush" EndPoint="1.31500005722046,0.0649999976158142" StartPoint="0.74099999666214,1.07500004768372">
                                <GradientStop Color="#00EFEFEF"/>
                                <GradientStop Color="#FFEFEFEF" Offset="1"/>
                            </LinearGradientBrush>
                            <LinearGradientBrush x:Key="WhiteGradient2Brush" EndPoint="0.74099999666214,1.07500004768372" StartPoint="1.31500005722046,0.0649999976158142">
                                <GradientStop Color="#00EFEFEF"/>
                                <GradientStop Color="#FFEFEFEF" Offset="1"/>
                            </LinearGradientBrush>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="FadeStates">
                                <vsm:VisualState x:Name="FadeOut">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="RootElement"
                                                         Storyboard.TargetProperty="Opacity"
                                                         From="1.0" To="0.0" Duration="0:0:0.3"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FadeIn">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="RotateTransform"
                                                        Storyboard.TargetProperty="Angle"
                                                        From="45.0" To="405.0" Duration="0:0:5" RepeatBehavior="Forever"/>
                                        <DoubleAnimation Storyboard.TargetName="RootElement"
                                                         Storyboard.TargetProperty="Opacity"
                                                         From="0.0" To="1.0" Duration="0:0:0.6"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid Width="100" Height="100" Background="Transparent">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <TranslateTransform x:Name="TranslateTransformElement" X="0.0" Y="0.0"/>
                                    <ScaleTransform x:Name="ScaleTransformElement" ScaleX="1.0" ScaleY="1.0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Grid Width="100" Height="100" Background="Transparent">
                                <Grid.RenderTransform>
                                    <TransformGroup>
                                        <RotateTransform x:Name="RotateTransform" CenterX="50" CenterY="50" Angle="45"/>
                                    </TransformGroup>
                                </Grid.RenderTransform>
                                <Path HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="{StaticResource WhiteGradientBrush}" Data="M3621 6243c50,-71 83,-118 128,-184 -64,-5 -128,-26 -184,-65 -166,-117 -207,-347 -91,-514 53,-75 129,-125 212,-146l137 -185c-22,-15 -150,-107 -201,-136 -163,38 -314,133 -416,280 -220,314 -142,750 172,969 130,91 281,131 429,124l-186 -143z">
                                    <Path.RenderTransform>
                                        <TranslateTransform X="-22.5" Y="1"/>
                                    </Path.RenderTransform>
                                </Path>
                                <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{StaticResource WhiteGradient2Brush}" Stretch="Uniform" Data="M3686 6240c36,25 102,73 194,139 182,-28 353,-127 467,-289 219,-315 142,-750 -173,-969 -146,-102 -318,-140 -482,-120l185 136c-12,18 -70,105 -127,187 81,-6 165,15 237,65 167,116 208,347 92,513 -62,89 -156,142 -256,155l-137 183z">
                                    <Path.RenderTransform>
                                        <TranslateTransform X="22.5"/>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!-- End of MediaControl Slider Style -->

    <!-- Window Container Styles -->

    <Style x:Key="ButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Cursor="Hand"  x:Name="grid" Height="Auto">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.5*"/>
                            <RowDefinition Height="0.5*"/>
                        </Grid.RowDefinitions>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Unfocused" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <!--<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.2"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7E7E7E"/>
                                        </ColorAnimationUsingKeyFrames>-->
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFA9A9A9"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.4"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.3"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle HorizontalAlignment="Stretch" Width="Auto" Stroke="#FFD6D6D6" RadiusX="1" RadiusY="1" Grid.RowSpan="2" x:Name="rectangle1" Fill="{StaticResource greyGrad}"/>
                        <Rectangle Height="Auto" HorizontalAlignment="Stretch" Margin="2,2,2,0" VerticalAlignment="Stretch" Width="Auto" Opacity="0.2" Fill="#66FFFFFF" RadiusX="3" RadiusY="3" x:Name="rectangle" Visibility="Collapsed"/>
                        <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Margin}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="WindowButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Cursor="Hand"  x:Name="grid" Height="Auto">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Unfocused" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFA9A9A9"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.4"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.3"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle HorizontalAlignment="Stretch" Width="Auto" Stroke="Transparent" RadiusX="1" RadiusY="1" x:Name="rectangle1"/>
                        <Rectangle Height="Auto" HorizontalAlignment="Stretch" Margin="2,2,2,0" VerticalAlignment="Stretch" Width="Auto" Opacity="0.2" RadiusX="3" RadiusY="3" x:Name="rectangle" Visibility="Collapsed"/>
                        <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Margin}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- SignUpInteractiveDataTemplate -->
    <DataTemplate x:Key="SignUpInteractiveDataTemplate">
        <ScrollViewer VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" VerticalAlignment="Stretch" BorderBrush="#FFFFFFFF">
            <Grid ShowGridLines="False">
                <Grid.Resources>
                    <Style TargetType="Button">
                        <Setter Property="Margin" Value="5"/>
                    </Style>
                    <Style x:Key="TextBlockStyle" TargetType="TextBlock">
                        <Setter Property="VerticalAlignment" Value="Top"/>
                        <Setter Property="HorizontalAlignment" Value="Right"/>
                        <Setter Property="Margin" Value="5"/>
                    </Style>
                    <Style x:Key="HeaderStyle" TargetType="TextBlock">
                        <Setter Property="VerticalAlignment" Value="Top"/>
                        <Setter Property="HorizontalAlignment" Value="Left"/>
                        <Setter Property="Height" Value="20"/>
                        <Setter Property="Margin" Value="5"/>
                    </Style>
                </Grid.Resources>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="58"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto" MinHeight="121"/>
                    <RowDefinition Height="123.083000183105"/>
                    <RowDefinition Height="Auto" MinHeight="108.917"/>
                </Grid.RowDefinitions>
                <TextBlock Text="{Binding Mode=OneTime, Path=Personal, Source={StaticResource Strings}}" x:Name="PersonalHeaderTbl" Grid.Column="0" Grid.Row="0" Style="{StaticResource HeaderStyle}" Margin="5,0,0,0" VerticalAlignment="Top" Foreground="#FF666666" FontWeight="Bold" />
                <TextBlock Text="{Binding Mode=OneTime, Path=Others, Source={StaticResource Strings}}" x:Name="OtherHeaderTbl" Grid.Column="0" Grid.Row="3" Style="{StaticResource HeaderStyle}" Margin="5,5,0,0" Foreground="#FF666666" FontWeight="Bold" />
                <!--<ScrollViewer x:Name="IdentificationScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Grid.Row="0" Grid.Column="1" Height="92.917" VerticalAlignment="Stretch" Grid.RowSpan="1">-->
                <Grid ShowGridLines="False" x:Name="IdentificationLayout" Grid.Row="0" Grid.Column="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="90"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Identifier, Source={StaticResource Strings}}" x:Name="SignUpIdLabel" Grid.Column="0" Grid.Row="0" Foreground="#ff666666"/>
                    <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Password, Source={StaticResource Strings}}" x:Name="SignUpPwdLabel" Grid.Column="0" Grid.Row="1" Foreground="#ff666666" />
                    <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Password, Source={StaticResource Strings}}" x:Name="SignUpRetypedPwdLabel" Grid.Column="0" Grid.Row="2" Foreground="#ff666666" />
                    <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Email, Source={StaticResource Strings}}" x:Name="SignUpEmailLabel" Grid.Column="0" Grid.Row="3" Foreground="#ff666666" />
                    <TextBox x:Name="SignUpIdentifier" Grid.Column="1" Grid.Row="0" Text="{Binding Mode=TwoWay, Path=User.PPID}" Style="{StaticResource FormTextBoxStyle1}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3"  />
                    <PasswordBox x:Name="SignUpPassword" Grid.Column="1" Grid.Row="1" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3"/>
                    <PasswordBox x:Name="SignUpRetypedPassword" Grid.Column="1" Grid.Row="2" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3"/>
                    <TextBox x:Name="SignUpEmail" Grid.Column="1" Grid.Row="3"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.Email}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                </Grid>
                <!--</ScrollViewer>-->
                <ScrollViewer x:Name="PersonalScrollViewer" Padding="0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Grid.Row="2" Grid.Column="1" BorderBrush="#FFFFFFFF">
                    <Grid ShowGridLines="False" x:Name="PersonalLayout">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="90"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=FirstName, Source={StaticResource Strings}}" x:Name="FNameTbl" Grid.Column="0" Grid.Row="0" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=LastName, Source={StaticResource Strings}}" x:Name="LNameTbl" Grid.Column="0" Grid.Row="1" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Gender, Source={StaticResource Strings}}" x:Name="GenderTbl" Grid.Column="0" Grid.Row="2" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=BirthDate, Source={StaticResource Strings}}" x:Name="BDateTbl" Grid.Column="0" Grid.Row="3" Foreground="#ff666666" />
                        <TextBox x:Name="Firstname" Grid.Column="1" Grid.Row="0"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.FirstName}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Lastname" Grid.Column="1" Grid.Row="1"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.LastName}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Gender" Grid.Column="1" Grid.Row="2"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.Gender}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Birthdate" Grid.Column="1" Grid.Row="3"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.BirthDate}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                    </Grid>
                </ScrollViewer>
                <ScrollViewer x:Name="OtherScrollViewer" Padding="0"  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Grid.Row="3" Grid.Column="1" Grid.RowSpan="2" BorderBrush="#FFFFFFFF" Margin="0,10,0,0">
                    <Grid ShowGridLines="False" x:Name="OtherLayout">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="90"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Country, Source={StaticResource Strings}}" x:Name="CountryTbl" Grid.Column="0" Grid.Row="0" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=ZipCode, Source={StaticResource Strings}}" x:Name="ZCodeTbl" Grid.Column="0" Grid.Row="1" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Income, Source={StaticResource Strings}}" x:Name="IncomeTbl" Grid.Column="0" Grid.Row="2" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Jobtitle, Source={StaticResource Strings}}" x:Name="JbTitleTbl" Grid.Column="0" Grid.Row="3" Foreground="#ff666666" />
                        <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Mode=OneTime, Path=Interests, Source={StaticResource Strings}}" x:Name="InterestsTbl" Grid.Column="0" Grid.Row="4" Foreground="#ff666666" />
                        <TextBox x:Name="Country" Grid.Column="1" Grid.Row="0"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.Country}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Zipcode" Grid.Column="1" Grid.Row="1"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.ZipCode}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Income" Grid.Column="1" Grid.Row="2"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.Income}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Jobtitle" Grid.Column="1" Grid.Row="3"  Style="{StaticResource FormTextBoxStyle1}"  Text="{Binding Mode=TwoWay, Path=User.JobTitle}" Width="150" HorizontalAlignment="Left" Margin="5,3,3,3" />
                        <TextBox x:Name="Interests" Grid.Column="1" Grid.Row="4" Height="100" Width="170" Margin="5,5,5,5" Text="{Binding Mode=TwoWay, Path=User.Interests}" HorizontalAlignment="Left" Style="{StaticResource FormTextBoxStyle1}" TextWrapping="Wrap"/>
                    </Grid>
                </ScrollViewer>
            </Grid>
        </ScrollViewer>
    </DataTemplate>

    <!-- SignUpWaitDataTemplate -->
    <DataTemplate x:Key="SignUpWaitDataTemplate">
        <Grid Background="#e3e3e3" Margin="10" Height="80">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <src:Spinner  Width="20" Grid.Column="0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20" Margin="5,0,0,0">
                <src:Spinner.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="2.5" ScaleY="2.5"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </src:Spinner.RenderTransform>
            </src:Spinner>
            <TextBlock Text="Please Wait for the operation to complete" TextWrapping="Wrap" Foreground="#ff666666" HorizontalAlignment="Center" Grid.Column="1" VerticalAlignment="Center" Margin="10,0,10,0"/>
        </Grid>
    </DataTemplate>

    <!-- SignInInteractiveDataTemplate -->
    <DataTemplate x:Key="SignInInteractiveDataTemplate">
        <Grid Height="Auto" Width="300">
            <Grid.Resources>
                <Style x:Key="TextBoxStyle" TargetType="TextBox">
                    <Setter Property="VerticalAlignment" Value="Top"/>
                    <Setter Property="HorizontalAlignment" Value="Left"/>
                    <Setter Property="Height" Value="20"/>
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="5"/>
                </Style>
                <Style x:Key="TextBlockStyle" TargetType="TextBlock">
                    <Setter Property="VerticalAlignment" Value="Top"/>
                    <Setter Property="HorizontalAlignment" Value="Right"/>
                    <Setter Property="Height" Value="20"/>
                    <Setter Property="Margin" Value="5"/>
                </Style>
                <Style x:Key="HeaderStyle" TargetType="TextBlock">
                    <Setter Property="VerticalAlignment" Value="Top"/>
                    <Setter Property="HorizontalAlignment" Value="Left"/>
                    <Setter Property="Height" Value="20"/>
                    <Setter Property="Margin" Value="5"/>
                </Style>
            </Grid.Resources>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.26*"/>
                <ColumnDefinition Width="0.74*"/>
            </Grid.ColumnDefinitions>
            <TextBlock HorizontalAlignment="Stretch" Margin="5,2,2,2" x:Name="SignInPPIDLabel" VerticalAlignment="Stretch" Foreground="#ff666666" Text="{Binding Mode=OneTime, Path=Identifier, Source={StaticResource Strings}}" Style="{StaticResource TextBlockStyle}" TextWrapping="Wrap"/>
            <TextBox HorizontalAlignment="Stretch" Margin="2,2,2,2" x:Name="SignInPPIDTextBox" Grid.Column="1" Foreground="#ff666666" Text="{Binding Mode=TwoWay, Path=User.PPID}" TextWrapping="Wrap"/>
            <TextBlock HorizontalAlignment="Stretch" Margin="5,2,2,2" VerticalAlignment="Stretch" Text="{Binding Mode=OneTime, Path=Password, Source={StaticResource Strings}}" TextWrapping="Wrap" x:Name="SignInPwdLabel" Style="{StaticResource TextBlockStyle}" Grid.Row="1" Foreground="#ff666666"/>
            <PasswordBox HorizontalAlignment="Stretch" Margin="2,2,2,2" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="1" x:Name="SignInPwdTextBox"/>
        </Grid>
    </DataTemplate>

    <!-- SignUpNotifyDatatTemplate -->
    <DataTemplate x:Key="SignUpNotifyDatatTemplate">
        <Grid x:Name="SignupNotifyGrid" Background="#e3e3e3" Margin="10">
            <TextBlock Margin="20" Text="{Binding Mode=OneWay, Path=Message}" TextWrapping="Wrap" Foreground="#ff666666" HorizontalAlignment="Left"/>
        </Grid>
    </DataTemplate>

    <!-- SignInNotifyDatatTemplate -->
    <DataTemplate x:Key="SignInNotifyDatatTemplate">
        <Grid x:Name="SigninNotifyGrid" Background="#e3e3e3" Margin="10">
            <TextBlock Text="{Binding Mode=OneWay, Path=Message}" Margin="20" TextWrapping="Wrap" Foreground="#ff666666" HorizontalAlignment="Left"/>
        </Grid>
    </DataTemplate>

    <Style TargetType="src:WindowContainer">
        <Setter Property="Background">
            <Setter.Value>
                <SolidColorBrush Color="White" Opacity="0.8"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:WindowContainer">
                    <Grid x:Name="Root" RenderTransformOrigin="{TemplateBinding RenderTransformOrigin}" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RenderTransform>
                            <ScaleTransform ScaleX="1.0" ScaleY="1.0"/>
                        </Grid.RenderTransform>
                        <!--Background="#FFEFECCA"-->
                        <Border x:Name="backgroundBorder" Grid.RowSpan="3" Grid.ColumnSpan="3"  
                                BorderBrush="#FFEFECCA" 
                                BorderThickness="0" HorizontalAlignment="Stretch" Margin="-5" 
                                VerticalAlignment="Stretch" Background="Transparent">
                            <Border BorderBrush="#05000000" BorderThickness="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Border BorderBrush="#15000000" BorderThickness="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
                                    <Border BorderBrush="#30000000" BorderThickness="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
                                        <Border BorderBrush="#55000000" BorderThickness="1" Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                                    </Border>
                                </Border>
                            </Border>
                        </Border>
                        <!--Background="#00ffffff"-->
                        <!--<Grid x:Name="WindowBar" Grid.Row="0" Grid.ColumnSpan="3" Background="#00ffffff" >
                            <Canvas x:Name="CaptureElement" HorizontalAlignment="Stretch" Background="#FF046380">
                                <ContentControl Foreground="White" Content="{TemplateBinding HeaderContent}" Margin="10,5,10,5" IsHitTestVisible="False" x:Name="HeaderElement" />
                            </Canvas>
                            <StackPanel Orientation="Horizontal"  VerticalAlignment="Top" HorizontalAlignment="Right" Background="#FFA7A37E">
                                <Button x:Name="MinimizeElement" Style="{StaticResource WindowButtonStyle}" Content="-"  Grid.Row="0" Grid.Column="0" Margin="3"/>
                                <Button x:Name="ClosingElement" Style="{StaticResource WindowButtonStyle}" Content="x" Grid.Row="0" Grid.Column="0"  Margin="3"/>
                            </StackPanel>
                        </Grid>-->
                        <Border x:Name="Body" Grid.ColumnSpan="3" Grid.Row="1" Grid.Column="0" Background="Transparent" >
                            <ContentPresenter Content="{TemplateBinding Content}"  ContentTemplate="{TemplateBinding ContentTemplate}"  />
                        </Border>
                        <!--<Border Background="#00ffffff" x:Name="ResizeElement" Width="10" Height="10" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Row="2" Grid.Column="2" Cursor="SizeWE">
                            <Grid Height="10" Width="10">
                                <Path Stretch="Fill" Stroke="#ccc" Data="M1.4583334,3.1041667 L4.2708335,0.29166672" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
                                <Path Stretch="Fill" Stroke="#ccc" Data="M1.4583334,3.1041667 L4.2708335,0.29166672" Margin="2.47399997711182,2.47399997711182,0,0" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
                                <Path Stretch="Fill" Stroke="#ccc" Data="M1.4583334,3.1041667 L4.2708335,0.29166672" Margin="0,0,0,0" VerticalAlignment="Bottom" Width="4.995" Height="4.995" HorizontalAlignment="Right" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
                                <Path Stretch="Fill" Stroke="#ccc" Data="M1.4583334,3.1041667 L4.2708335,0.29166672" Margin="0,0,0,0" VerticalAlignment="Bottom" Width="2.604" Height="2.604" HorizontalAlignment="Right" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
                            </Grid>
                        </Border>-->
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- SignInForm Style -->
    <Style TargetType="src:SignInForm">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SignInForm">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="FormSubmitted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormDisplayed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormNotified">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="SigninBorder" VerticalAlignment="Stretch" Grid.Row="1">
                            <StackPanel Height="Auto" x:Name="Container" Width="Auto">
                                <Grid Height="Auto" x:Name="SigninPanel" VerticalAlignment="Top">
                                    <ContentControl Content="Interactive Content" x:Name="ElementInteractive" Margin="0,0,0,0"/>
                                    <ContentControl Content="Wait Content" x:Name="ElementWait" Height="104" Margin="0,0,0,0" />
                                    <ContentControl Content="Notify Content" x:Name="ElementNotify" Margin="0,0,0,0" />
                                </Grid>
                                <StackPanel Margin="2" x:Name="ButtonPanel" Orientation="Horizontal" HorizontalAlignment="Right">
                                    <Button Width="64" Content="Retry" x:Name="ResetButton" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Login" x:Name="SubmitButton" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Close" x:Name="CancelButton" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="InteractiveTemplate" Value="{StaticResource SignInInteractiveDataTemplate}"/>
        <Setter Property="WaitTemplate" Value="{StaticResource SignUpWaitDataTemplate}"/>
        <Setter Property="NotifyTemplate" Value="{StaticResource SignInNotifyDatatTemplate}"/>
    </Style>

    <!-- SignUpForm Style -->
    <Style TargetType="src:SignUpForm">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SignUpForm">
                    <Grid Background="White">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="FormSubmitted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormDisplayed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormNotified">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="SignupBorder" VerticalAlignment="Stretch" Grid.Row="1">
                            <StackPanel Height="Auto" x:Name="Container" Width="Auto">
                                <!--<StackPanel x:Name="SignupPanel" Height="Auto">-->
                                <ContentControl Content="Interactive Content" x:Name="ElementInteractive"/>
                                <ContentControl Content="Wait Content" x:Name="ElementWait" Height="104" Width="350"/>
                                <ContentControl Content="Notify Content" x:Name="ElementNotify" Width="350"/>
                                <!--</StackPanel>-->
                                <StackPanel HorizontalAlignment="Right" Margin="2,2,5,5" x:Name="ButtonPanel" Orientation="Horizontal">
                                    <Button Width="64" Content="Retry" x:Name="ResetButton" Padding="3" Margin="5" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Register" x:Name="SubmitButton" Padding="3" Margin="5" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Close" x:Name="CancelButton" Padding="3" Margin="5" Style="{StaticResource ButtonStyle}"/>
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="InteractiveTemplate" Value="{StaticResource SignUpInteractiveDataTemplate}"/>
        <Setter Property="WaitTemplate" Value="{StaticResource SignUpWaitDataTemplate}"/>
        <Setter Property="NotifyTemplate" Value="{StaticResource SignUpNotifyDatatTemplate}"/>
    </Style>

    <!-- EditForm Style -->
    <Style TargetType="src:EditForm">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:EditForm">
                    <Grid Background="White">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="FormSubmitted">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormDisplayed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FormNotified">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementNotify" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementInteractive" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ElementWait" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="EditBorder" VerticalAlignment="Stretch" Grid.Row="1">
                            <StackPanel Height="Auto" x:Name="Container" Width="Auto">
                                <StackPanel x:Name="EditPanel" Height="Auto">
                                    <ContentControl Content="Interactive Content" x:Name="ElementInteractive" Height="500" Width="350"/>
                                    <ContentControl Content="Wait Content" x:Name="ElementWait" Height="104" Width="350"/>
                                    <ContentControl Content="Notify Content" x:Name="ElementNotify" />
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Right" Margin="2,2,5,5" x:Name="ButtonPanel" Orientation="Horizontal">
                                    <Button Width="64" Content="Retry" x:Name="ResetButton" Height="30" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Save" x:Name="SubmitButton" Height="30" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                    <Button Width="64" Content="Close" x:Name="CancelButton" Height="30" Margin="2,2,2,2" Style="{StaticResource ButtonStyle}"/>
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="InteractiveTemplate" Value="{StaticResource SignUpInteractiveDataTemplate}"/>
        <Setter Property="WaitTemplate" Value="{StaticResource SignUpWaitDataTemplate}"/>
        <Setter Property="NotifyTemplate" Value="{StaticResource SignUpNotifyDatatTemplate}"/>
    </Style>

    <!-- SignInSignOffButton Style -->
    <Style TargetType="src:SignInSignOffButton">
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="Width" Value="75"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SignInSignOffButton">
                    <Border x:Name="border" BorderBrush="Transparent" BorderThickness="1.0" Margin="{TemplateBinding Margin}" Cursor="Hand">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="AuthenticationStates">
                                <vsm:VisualState x:Name="Anonymous">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AuthenticatedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AnonymousElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Authenticated">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AnonymousElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AuthenticatedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="00:00:00.2000000"/>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.3"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Yellow"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="LightBlue"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="ContentFocused" />
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="MainVisual">
                            <ContentPresenter x:Name="AuthenticatedElement"
                                Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            <ContentPresenter x:Name="AnonymousElement"
                                Content="{TemplateBinding AnonymousContent}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- SignUpEditProfileButton Style -->
    <Style TargetType="src:SignUpEditProfileButton">
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="Width" Value="75"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SignUpEditProfileButton">
                    <Border x:Name="border" BorderBrush="Transparent" BorderThickness="1.0" Margin="{TemplateBinding Margin}" Cursor="Hand">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="AuthenticationStates">
                                <vsm:VisualState x:Name="Anonymous">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AuthenticatedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AnonymousElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Authenticated">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AnonymousElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="AuthenticatedElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition To="MouseOver" GeneratedDuration="0:0:0.2" />
                                    <vsm:VisualTransition To="Pressed" GeneratedDuration="0:0:0.1" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="Yellow"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="LightBlue"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="ContentFocused" />
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid x:Name="MainVisual">
                            <ContentPresenter x:Name="AuthenticatedElement"
                                Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            <ContentPresenter x:Name="AnonymousElement"
                                Content="{TemplateBinding AnonymousContent}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- MIB Media Player Style -->
    <Style TargetType="src:MediaPlayer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:MediaPlayer">
                    <Grid x:Name="RootElement"  Margin="5,5,5,10" HorizontalAlignment="Stretch" Width="420">

                    	<Grid.RowDefinitions>
                    		<RowDefinition Height="Auto"/>
                    		<RowDefinition Height="Auto"/>
                    	</Grid.RowDefinitions>

                    	<Grid Background="Black" x:Name="MediaPlaceholder" f:AttachAdService.Layout="Overlay" Margin="0,0,0,5">
                    		<src:LargeSpinner Canvas.ZIndex="10" IsActive="{Binding Mode=OneWay, Path=Buffering}" Diameter="30" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" />
                    	</Grid>
                    	<!-- player controls: -->
                    	<src:MediaControls x:Name="MediaControlsElement" Margin="0,0,0,0" Height="Auto" VerticalAlignment="Bottom" d:LayoutOverrides="VerticalAlignment" Grid.Row="0"/>
                    	<Grid Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="Auto" Grid.Row="1" Background="#FFE3E3E3" x:Name="ProgramInfoGrid">
                    		<src:MediaProgramInfo HorizontalAlignment="Left"/>
                    	</Grid>
                    	<src:FullScreenButton Height="Auto" Margin="0,0,0,0" VerticalAlignment="Top" Content="FullScreenButton" Grid.Row="0" Width="Auto" HorizontalAlignment="Stretch"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- MIB Media Control Style -->
    <Style TargetType="src:MediaControls">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:MediaControls">
                    <!--VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#e3e3e3"-->
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal">
                                	<Storyboard>
                                		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Opacity)">
                                			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                			<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                                		</DoubleAnimationUsingKeyFrames>
                                	</Storyboard>                                    
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                	<Storyboard>
                                		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Opacity)">
                                			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                			<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                                		</DoubleAnimationUsingKeyFrames>
                                	</Storyboard>                                   
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <!--VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#e3e3e3"-->
                   
                		<Border BorderBrush="White" BorderThickness="1.5" CornerRadius="2"  Background="#4CFFFFFF" Opacity="1" d:LayoutOverrides="Width" x:Name="border">
                			<StackPanel Orientation="Vertical" Margin="5" Background="Transparent" HorizontalAlignment="Center">
                				<StackPanel.Resources>
                					<src:Strings x:Key="Strings" />
                				</StackPanel.Resources>

                				<StackPanel Orientation="Horizontal">
                					<Button ToolTipService.ToolTip="{Binding Mode=OneTime, Path=Rewind, Source={StaticResource Strings}}" x:Name="BackwardButton" Style="{StaticResource ScanButtonTemplate}" />
                					<CheckBox ToolTipService.ToolTip="{Binding Mode=OneTime, Path=Play, Source={StaticResource Strings}}" x:Name="PlayPauseButton" Style="{StaticResource PlayPauseButtonTemplate}"/>
                					<Button ToolTipService.ToolTip="{Binding Mode=OneTime, Path=Forward, Source={StaticResource Strings}}" x:Name="ForwardButton" Style="{StaticResource ScanButtonTemplate}">
                						<Button.RenderTransform>
                							<TransformGroup>
                								<ScaleTransform ScaleX="-1"/>
                								<TranslateTransform X="45"/>
                							</TransformGroup>
                						</Button.RenderTransform>
                					</Button>
                					<ToggleButton ToolTipService.ToolTip="{Binding Mode=OneTime, Path=Mute, Source={StaticResource Strings}}" x:Name="MuteButton" Style="{StaticResource MuteButtonTemplate}" Margin="65,0,0,0"/>
                					<Slider Style="{StaticResource VolumeTemplate}" ToolTipService.ToolTip="{Binding Mode=OneTime, Path=Volume, Source={StaticResource Strings}}" x:Name="VolumeSlider" Margin="5,0,0,0" VerticalAlignment="Center" />
                				</StackPanel>
              
                				<Grid Background="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                					<Border VerticalAlignment="Center" Margin="5,5,5,5" BorderBrush="#A5AAB0" BorderThickness="0,1,0,0" Height="8" CornerRadius="4" >
                						<Border Background="#444B53" BorderBrush="#FCFCFC" BorderThickness="2,0,2,1" CornerRadius="4"/>
                					</Border>
                					<Slider x:Name="DownloadSlider" Style="{StaticResource DownloadTemplate}"  Margin="10,5,5,5"/>
                					<Slider x:Name="TimelineSlider" Style="{StaticResource SliderTemplate}" Margin="10,5,5,5"/>
                				</Grid>
                            
                				<!-- right buttons (4/3, 16/9, full screen, expand/reduce): -->
                				<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,5">
                					<TextBlock ToolTipService.ToolTip="{Binding Mode=OneTime, Path=CurrentDuration, Source={StaticResource Strings}}" x:Name="CurrentDuration"  FontSize="11" Foreground="White"/>
                					<TextBlock FontSize="11" Foreground="White" Text=" / " x:Name="Slash" />
                					<TextBlock ToolTipService.ToolTip="{Binding Mode=OneTime, Path=TotalDuration, Source={StaticResource Strings}}" x:Name="TotalDuration" FontSize="11" Foreground="White"/>
                				</StackPanel>
                			</StackPanel>
                			<!-- buttons etc. bar -->
                		</Border>
                	</Grid>
                    <!-- player controls -->
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin MediaProgramInfo Style -->
    <Style TargetType="src:MediaProgramInfo">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:MediaProgramInfo">
                    <Grid Margin="0,0,0,0" Background="#FFE3E3E3" x:Name="RooteElement">
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="0.272*"/>
                    		<ColumnDefinition Width="0.728*"/>
                    	</Grid.ColumnDefinitions>
                		<StackPanel Margin="10,10,0,0" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="TextStackPanel" d:LayoutOverrides="GridBox" Width="355">
                			<TextBlock Text="{Binding Mode=OneWay, Path=Title}" TextWrapping="Wrap" Margin="3" FontSize="20" x:Name="Title"/>
                			<TextBlock Text="{Binding Mode=OneWay, Path=Description}" TextWrapping="Wrap" Margin="3" x:Name="Description"/>
                			<Slider Value="{Binding Mode=OneWay, Path=PeopleRatings}" Style="{StaticResource FiveStarRatingTemplate}" Margin="1,3,1,3" HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="RatingSlider"/>
                		</StackPanel>
                		<Image Height="43" HorizontalAlignment="Stretch" Margin="10,10,5,0" VerticalAlignment="Top" Width="43" Grid.Column="0" Source="http://localhost:8080/Media/Channels/TVE1.png" x:Name="Icon"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin BrowseExplorer Style -->
    <Style TargetType="src:BrowseExplorer">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <src:MSWrapPanel Margin="0,3,0,3" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <!--<Grid Background="Transparent" Height="150" Width="150" Margin="0" >
                        <Image Source="http://localhost:8080/Images/Browse.jpg" />
                        <TextBlock Foreground="White" Text="{Binding Path=Name, Mode=OneWay}" />
                    </Grid>-->
                    <Border BorderBrush="White" BorderThickness="3" Cursor="Hand">
                        <Grid Height="145" Width="145">
                            <Grid.Background>
                                <LinearGradientBrush StartPoint="0.24,0.061" EndPoint="0.76,1" >
                                    <GradientStop Color="#FFA0B1C7" Offset="0"/>
                                    <GradientStop Color="#FFDFECF4" Offset="1"/>
                                </LinearGradientBrush>
                            </Grid.Background>
                            <Border Background="#FF605649" Opacity="0.745" Height="45" VerticalAlignment="Bottom">
                                <TextBlock Foreground="White" Text="{Binding Mode=OneWay, Path=Name}" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center"/>
                            </Border>
                        </Grid>
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:BrowseExplorer">
                    <Grid x:Name="RootElement" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
                    	<Grid.RenderTransform>
                    		<TransformGroup>
                    			<ScaleTransform/>
                    			<SkewTransform/>
                    			<RotateTransform/>
                    			<TranslateTransform/>
                    		</TransformGroup>
                    	</Grid.RenderTransform>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Iconed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BodyElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CategoryHeaderElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="NavigationElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BodyElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CategoryHeaderElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="NavigationElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RootElement" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                        	<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-366"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RootElement" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                                        	<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-328"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="160" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="78" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="160" />
                            <ColumnDefinition Width="160" />
                            <ColumnDefinition Width="160" />
                        </Grid.ColumnDefinitions>
                        <!--<Image Visibility="Visible" HorizontalAlignment="Left" x:Name="browse_bg" Width="475" Source="http://localhost:8080/Images/browseBG.png" Stretch="None" Margin="0,0,0,0" Grid.Row="1" Grid.ColumnSpan="3"/>-->

                        <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3">
                            <Grid x:Name="HeaderElement">
                                <Button x:Name="MinimizeElement" Content="X" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="20" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5" Canvas.ZIndex="10" Margin="0,0,10,10" />
                            </Grid>
                            <Grid x:Name="CategoryHeaderElement" Visibility="Collapsed"/>
                        </StackPanel>

                        <Grid Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Visibility="Collapsed" Background="Transparent" x:Name="BodyElement" Width="Auto">
                            <!--<Image Visibility="Visible" HorizontalAlignment="Left" x:Name="browse_bg" Source="http://localhost:8080/Images/browseBG.png" Stretch="None" Margin="0,0,0,0" />-->
                            <ItemsPresenter />
                            <src:LargeSpinner Canvas.ZIndex="10" IsActive="{Binding Mode=OneWay, Path=IsBuffering}" Diameter="30" VerticalAlignment="Center" HorizontalAlignment="Center" />
                        </Grid>

                        <Grid x:Name="NavigationElement" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="3" Visibility="Collapsed" Width="480" Height="78">
                            <src:BrowseActions x:Name="BrowseActionsCtrl" />
                        </Grid>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MinWidth" Value="0"/>
        <Setter Property="MinHeight" Value="0"/>
    </Style>

    <!-- Begin SearchExplorer Style -->
    <Style TargetType="src:SearchExplorer">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <src:MSWrapPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <!--<Grid Background="Transparent" Height="150" Width="150" Margin="0" >
                        <Image Source="http://localhost:8080/Images/searchClouds.jpg" />
                        <TextBlock Foreground="White" Text="{Binding Path=Name, Mode=OneWay}" />
                    </Grid>-->
                    <Border BorderBrush="#9F9F9F" BorderThickness="1" Cursor="Hand">
                    	<Border BorderBrush="White" BorderThickness="5" Cursor="Hand">
                        <Grid Background="#ff7b7b7b" Height="145" Width="145">
                            <Border Background="#7F000000" Opacity="0.75" Height="45" VerticalAlignment="Bottom">
                                <TextBlock Foreground="White" Text="{Binding Mode=OneWay, Path=Name}" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Margin="6,0,6,0"/>
                            </Border>
                        </Grid>
						</Border>
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SearchExplorer">
                    <Grid HorizontalAlignment="Right" x:Name="RootElement" VerticalAlignment="Top">
                    	<Grid.RowDefinitions>
                    		<RowDefinition Height="160"/>
                    		<RowDefinition Height="Auto" MinHeight="0"/>
                    		<RowDefinition Height="Auto" MinHeight="0"/>
                    	</Grid.RowDefinitions>
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="Auto"/>
                    		<ColumnDefinition Width="Auto"/>
                    		<ColumnDefinition Width="160"/>
                    	</Grid.ColumnDefinitions>
                		<vsm:VisualStateManager.VisualStateGroups>
                			<vsm:VisualStateGroup x:Name="CommonStates">
                				<vsm:VisualState x:Name="Iconed">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BodyElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                							<DiscreteObjectKeyFrame KeyTime="00:00:00">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="NavigationElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                							<DiscreteObjectKeyFrame KeyTime="00:00:00">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</vsm:VisualState>
                				<vsm:VisualState x:Name="Normal">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BodyElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                							<DiscreteObjectKeyFrame KeyTime="00:00:00">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="NavigationElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                							<DiscreteObjectKeyFrame KeyTime="00:00:00">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</vsm:VisualState>
                			</vsm:VisualStateGroup>
                		</vsm:VisualStateManager.VisualStateGroups>

                		<Grid x:Name="HeaderElement" HorizontalAlignment="Right" Grid.Column="2" VerticalAlignment="Top" d:LayoutOverrides="GridBox">
                            <Button x:Name="MinimizeElement" Content="X" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="20" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5" Canvas.ZIndex="10" Margin="0,0,10,10" />
                        </Grid>


                		<Grid Visibility="Collapsed" Background="Transparent" x:Name="BodyElement" Grid.Row="2" HorizontalAlignment="Right" Grid.Column="2" d:LayoutOverrides="GridBox">
                			<!--<Image Visibility="Visible" HorizontalAlignment="Left" x:Name="search_bg" Width="475" Source="http://localhost:8080/Images/searchBG.png" Stretch="None" Margin="0,0,0,0" />-->
                			<ItemsPresenter Width="472" Height="472" />
                			<src:LargeSpinner Canvas.ZIndex="10" IsActive="{Binding Mode=OneWay, Path=IsBuffering}" Diameter="30" VerticalAlignment="Center" HorizontalAlignment="Center" />
                		</Grid>

                		<!--Width="480" Height="78"-->
                		<Grid x:Name="NavigationElement" Width="472" Visibility="Collapsed" Height="100" VerticalAlignment="Bottom" HorizontalAlignment="Right" Grid.ColumnSpan="3" d:LayoutOverrides="GridBox">
                			<src:SearchActions x:Name="SearchActionsCtrl" Margin="-4,0,0,0" />
                		</Grid>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="MinWidth" Value="0"/>
        <Setter Property="MinHeight" Value="0"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource SearchListBoxItemStyle}"/>
    </Style>

    <!-- Begin BrowseActions Style -->
    <Style TargetType="src:BrowseActions">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:BrowseActions">
                    <Canvas HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="476.141" Height="86.709">
                        <Image Width="Auto" Height="Auto" Source="http://localhost:8080/Images/browseFooter.png" Stretch="None" x:Name="browseFooter" Visibility="Visible" Canvas.Left="0" Canvas.Top="0"/>
                        <Rectangle x:Name="PagingElement" Cursor="Hand" Fill="Transparent" Width="68" Height="50" Canvas.Left="376" Canvas.Top="15" />
                        <Rectangle x:Name="AlphaSortingElemnt" Cursor="Hand" Fill="Transparent" Width="50" Height="50" Canvas.Left="100" Canvas.Top="15" />
                        <Rectangle x:Name="DateSortingElement" Cursor="Hand" Fill="Transparent" Width="50" Height="50" Canvas.Left="175" Canvas.Top="15" />
                        <Rectangle x:Name="RankSortingElement" Cursor="Hand" Fill="Transparent" Width="65" Height="50" Canvas.Left="255" Canvas.Top="15" />
                        <Grid x:Name="browseFooterNew">
                            <Image HorizontalAlignment="Left" Width="100" Source="Images/FooterImages/sort_browser.png" Stretch="Fill" x:Name="sortBy1"/>
                            <Button HorizontalAlignment="Left" Margin="100,0,0,-9" Style="{StaticResource ButtonStyleAZ}" Width="60" Content="Button" x:Name="az1"/>
                            <Button HorizontalAlignment="Left" Margin="160,0,0,-9" Style="{StaticResource ButtonStyleDate}" Width="80" Content="Button" x:Name="date1"/>
                            <Button HorizontalAlignment="Left" Margin="240,0,0,-9" Style="{StaticResource ButtonStyleRating}" Width="90" Content="Button" x:Name="rating1"/>
                            <Image HorizontalAlignment="Left" Margin="330,0,0,0" x:Name="results1" Width="138" Source="Images/FooterImages/results_browser.png" Stretch="Fill"/>
                        </Grid>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin SearchActions Style -->
    <Style TargetType="src:SearchActions">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SearchActions">
                    <Canvas HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="476" Height="86.709">
                        <!--<Image Width="Auto" Height="Auto" Source="http://localhost:8080/Images/searchFooter.png" Stretch="None" x:Name="browseFooter" Visibility="Visible" Canvas.Left="0"/>-->
                        <Rectangle x:Name="PagingElement" Cursor="Hand" Fill="Transparent" Width="68" Height="50" Canvas.Left="376" Canvas.Top="15" />
                        <Rectangle x:Name="AlphaSortingElemnt" Cursor="Hand" Fill="Transparent" Width="50" Height="50" Canvas.Left="100" Canvas.Top="15" />
                        <Rectangle x:Name="DateSortingElement" Cursor="Hand" Fill="Transparent" Width="50" Height="50" Canvas.Left="175" Canvas.Top="15" />
                        <Rectangle x:Name="RankSortingElement" Cursor="Hand" Fill="Transparent" Width="62" Height="50" Canvas.Left="259" Canvas.Top="15" />
                        <Grid x:Name="searchFooterNew">
                            <Image HorizontalAlignment="Left" Width="100" Source="Images/FooterImages/sort_search.png" Stretch="Fill" x:Name="sortBy"/>
                            <Button HorizontalAlignment="Left" Margin="100,0,0,-9" Width="60" Content="Button" x:Name="az" Style="{StaticResource ButtonStyleAZs}"/>
                            <Button HorizontalAlignment="Left" Margin="160,0,0,-9" Style="{StaticResource ButtonStyleDateS}" Width="80" Content="Button" x:Name="date"/>
                            <Button HorizontalAlignment="Left" Margin="240,0,0,-9" Style="{StaticResource ButtonStyleRatingS}" Width="90" Content="Button" x:Name="rating"/>
                            <Image HorizontalAlignment="Left" Margin="330,0,0,0" x:Name="results" Source="Images/FooterImages/results_search.png" Width="138" Stretch="Fill"/>
                        </Grid>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin VignetteBase Style -->
    <Style TargetType="src:CatVignetteBase">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <src:MSWrapPanel Height="146" Width="146">
                        <src:MSWrapPanel.Background>
                    		<LinearGradientBrush EndPoint="0.952,0.979" StartPoint="-0.055,0">
                    			<GradientStop Color="#FF0E3261" Offset="0"/>
                    			<GradientStop Color="#FFC8E5F4" Offset="1"/>
                    			<GradientStop Color="#FF3874A6" Offset="0.496"/>
                    			<GradientStop Color="#FF35699A" Offset="0.31700000166893005"/>
                    			<GradientStop Color="#FF6B95B5" Offset="0.705"/>
                    		</LinearGradientBrush>
                    	</src:MSWrapPanel.Background>
                    </src:MSWrapPanel>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid Background="Transparent" Margin="1,1,1,1">
                        <TextBlock Foreground="White" FontSize="14" Text="{Binding Mode=OneWay, Path=Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3" FontFamily="Arial"/>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:CatVignetteBase">
                    <Grid x:Name="RootElement" Margin="1,1,1,1" HorizontalAlignment="Left" VerticalAlignment="Top">
                    	<Border Margin="0,0,0,0" Background="#FFFFFFFF" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="5,5,5,5" BorderBrush="#FF9F9F9F" BorderThickness="1,1,1,1">
                    		<ItemsPresenter Height="Auto" Width="Auto" />
                    	</Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin SearchVignette Style -->
    <Style TargetType="src:SearchVignette">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:SearchVignette">
                    <Grid x:Name="RootElement" Margin="1,1,1,1" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <Border Margin="0,0,0,0" Background="#FFFFFFFF" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="5,5,5,5" BorderBrush="#FF9F9F9F" BorderThickness="1,1,1,1">
                            <StackPanel Height="146" Width="146" VerticalAlignment="Top">
                                <StackPanel.Background>
                                    <ImageBrush ImageSource="http://localhost:8080/Images/searchClouds.jpg"/>
                                </StackPanel.Background>
                                <StackPanel Orientation="Horizontal" Margin="5,10,5,0">
                                    <TextBlock FontSize="14" TextWrapping="Wrap" Text="I want to watch:" VerticalAlignment="Center"/>
                                    <Button x:Name="SearchButton" Height="25" Width="25" Cursor="Hand">
                                        <Button.Template>
                                            <ControlTemplate>
                                                <Image Source="http://localhost:8080/Images/searchIcon.png" Stretch="Fill"/>
                                            </ControlTemplate>
                                        </Button.Template>
                                    </Button>
                                </StackPanel>
                                <TextBox IsEnabled="True" Foreground="Black" x:Name="SearchTextBox" Margin="5"/>
                                <TextBlock FontSize="10" Foreground="Gray" TextWrapping="Wrap" Margin="5" /> <TextBlock Text="Please enter the programme, actor or other above" />
                            </StackPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Begin FullScreenButton Style -->
    <Style TargetType="src:FullScreenButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="src:FullScreenButton">
                    <Border x:Name="border" Cursor="Hand" BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" Padding="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFFFFFFF"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#CCAAC2CF"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#00C8DDE6"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#BFC8DDE6"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#00FFFFFF"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#7FFFFFFF"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(LinearGradientBrush.StartPoint)">
                                            <SplinePointKeyFrame KeyTime="00:00:00" Value="0.016,0.045"/>
                                            <SplinePointKeyFrame KeyTime="00:00:00.3000000" Value="0.016,0.045"/>
                                        </PointAnimationUsingKeyFrames>
                                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(LinearGradientBrush.EndPoint)">
                                            <SplinePointKeyFrame KeyTime="00:00:00" Value="0.984,0.974"/>
                                            <SplinePointKeyFrame KeyTime="00:00:00.3000000" Value="0.984,0.974"/>
                                        </PointAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CheckStates">
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#CCAAC2CF"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFFFFFFF"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#BFC8DDE6"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00C8DDE6"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="#7FFFFFFF"/>
                                            <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00FFFFFF"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(LinearGradientBrush.StartPoint)">
                                            <SplinePointKeyFrame KeyTime="00:00:00" Value="0.016,0.045"/>
                                            <SplinePointKeyFrame KeyTime="00:00:00.3000000" Value="0.016,0.045"/>
                                        </PointAnimationUsingKeyFrames>
                                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(LinearGradientBrush.EndPoint)">
                                            <SplinePointKeyFrame KeyTime="00:00:00" Value="0.984,0.974"/>
                                            <SplinePointKeyFrame KeyTime="00:00:00.3000000" Value="0.984,0.974"/>
                                        </PointAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked"/>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#00000000" Offset="0"/>
                                <GradientStop Color="#00FFFFFF" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <Grid Width="Auto" Height="Auto" Background="#4CFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Rectangle Height="Auto" Fill="#FFFEFEFE" Stroke="{x:Null}" Margin="9.5,23.287,0,12.752" Opacity="0.8" HorizontalAlignment="Left" Width="18.15" VerticalAlignment="Stretch">
                            </Rectangle>
                            <Rectangle Width="13.263" Height="7.679" Stroke="{x:Null}" Margin="11.942,0,0,14.841" HorizontalAlignment="Left" VerticalAlignment="Bottom" Opacity="0.8">
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="4.8" ScaleY="4.8"/>
                                                <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FF000000" Offset="0.724"/>
                                        <GradientStop Color="#FFABABAB" Offset="0"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Fill="#FFFEFEFE" Stroke="{x:Null}" Width="26" Height="20" Margin="16.25,13,13.75,17">
                            </Rectangle>
                            <Rectangle Stroke="{x:Null}" Margin="18.375,19,15.875,19">
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="4.8" ScaleY="4.8"/>
                                                <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FF000000" Offset="0.724"/>
                                        <GradientStop Color="#FFABABAB" Offset="0"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>

</ResourceDictionary>
